package ressources;

import java.io.File;

public class Constant {
	public static int NB_PAWN = 9;
	public static int NB_CONSTRAINT= 4;
	public static int NORTH = 0;
	public static int SOUTH = 1;
	public static int EAST = 2;
	public static int WEST = 3;
	
	public static int NB_PLAYER_MAX = 6;
	
	public static int WIDTH_TILE = 78;
	
	public static String key_poptile = "poptile";
	public static String key_newgame = "newgame";
	public static String key_cancel = "cancel";
	public static String key_validate = "validate";
	public static String key_poppawn = "poppawn";
	
	
	public static String path = System.getProperty("user.dir")+File.separator+"bin"+File.separator+"ressources"+File.separator;
	
	
	public static String getPawnColor(int i){
		String[] colors = new String[Constant.NB_PLAYER_MAX];
		colors[0] = path+"blue.gif";
		colors[1]  = path+"vert.gif";
		colors[2] = path+"jaune.gif";
		colors[3] = path+"rouge.gif";
		colors[4] = path+"noir.gif";
		colors[5] = path+"grey.gif";
		if(i>=0 && i<=5)
			return colors[i];
		else 
			return colors[i%5];
	}
	
	
	public static String getPlayerImage(int i){
		String[] playersImages = new String[Constant.NB_PLAYER_MAX];
		playersImages[0] = path+"Pion2.png";
		playersImages[1]  = path+"Pion3.png";
		playersImages[2] = path+"Pion1.png";
		playersImages[3] = path+"Pion4.png";
		playersImages[4] = path+"Pion6.png";
		playersImages[5] = path+"Pion5.png";
		if(i>=0 && i<=5)
			return playersImages[i];
		else 
			return playersImages[i%5];
	}
	
	
}
